package dao

import "GuidingSystem/model/reply"

func (db *db) GetHotelsByCemeteryID(id int64) ([]*reply.Hotel, error) {
	res := make([]*reply.Hotel, 0)
	err := db.DBEngine.Where("cemetery_id = ?", id).Find(&res).Error
	return res, err
}
